<div class="paginationControl">
<ul class="pagination">
  <li><a href='javascript:;'>Total : <?php echo $this->totalItemCount ?></a></li>
</ul>
<?php if ($this->pageCount > 1): ?>

<ul class="pagination pull-right">

<!-- First page link -->
<?php if (isset($this->previous)): ?>
  <li class="previous"><a href="<?php echo $this->url(array('page' => $this->first)); ?>">&larr; First</a></li>
<?php else: ?>
  <li class="previous disabled"><a href="javascript:;">&larr; First</a></li>
<?php endif; ?>

<!-- Previous page link -->
<?php if (isset($this->previous)): ?>
  <li class="previous"><a href="<?php echo $this->url(array('page' => $this->next)); ?>" class="fui-arrow-left">Previous</a></li>
<?php else: ?>
  <li class="previous disabled"><a href="javascript:;" class="fui-arrow-left">Previous</a></li>
<?php endif; ?>

<!-- Numbered page links -->
<?php foreach ($this->pagesInRange as $page): ?>
  <?php if ($page != $this->current): ?>
    <li><a href="<?php echo $this->url(array('page' => $page)); ?>"><?php echo $page; ?></a></li>
  <?php else: ?>
    <li class="active"><a href="javascript:;"><?php echo $page; ?> <span class="sr-only">(current)</span></a></li>
  <?php endif; ?>
<?php endforeach; ?>

<!-- Next page link -->
<?php if (isset($this->next)): ?>
  <li class="next"><a href="<?php echo $this->url(array('page' => $this->next)); ?>" class="fui-arrow-right">Next</a></li>
<?php else: ?>
  <li class="next disabled"><a href="javascript:;" class="fui-arrow-right">Next</a></li>
<?php endif; ?>

<!-- Last page link -->
<?php if (isset($this->next)): ?>
  <li class="next"><a href="<?php echo $this->url(array('page' => $this->last)); ?>">Last &rarr;</a></li>
<?php else: ?>
  <li class="next disabled"><a href="javascript:;">Last &rarr;</a></li>
<?php endif; ?>
</ul>
<?php endif; ?>
</div>

